﻿<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script runat="server">
    protected void OnTabActived(object sender, EventArgs e)
    {
        Label lb = new Label();
        lb.Text = "This label is added by server active event";
        View2.Controls.Add(lb);
    }
</script>

<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
       <DotNetAge:Tabs ID="Tabs1" runat="server" AutoPostBack="true">
        <Views>
            <DotNetAge:View ID="View1" runat="server" Text="About">
               <p>
                    Tabs is a ASP.NET WebControl that encapsulated the jQuery UI tabs plugin.Tabs are
                    generally used to break content into multiple sections that can be swapped to save
                    space, much like an Accordion.
                </p>
                <p>
                    By default a Tabs will swap between tabbed sections onClick, but the events can
                    be changed to onHover through an property. Tab content can be loaded via Ajax by
                    setting an NavigateUrl on a View Control.
                </p
            </DotNetAge:View>
            <DotNetAge:View ID="View2" runat="server" Text="KeepOpen" OnActive="OnTabActived">
            </DotNetAge:View>
        </Views>
    </DotNetAge:Tabs>
    </form>
</body>
</html>
